package com.meadvc.ssmdemo.dao;

import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierDao {


    /**
     * 生成订单是获取供应商信息
     * @return
     */
    List<JSONObject> getSuppliers();

    /**
     * 获取供应商列表
     * @param offSet
     * @param pageRow
     * @return
     */
    List<JSONObject> getSuppliers2(@Param("offSet") int offSet,@Param("pageRow") int pageRow);

    int countSuppliers();



    int addSupplier(JSONObject requestJson);

    JSONObject getSupplierById(@Param("sid") int sid);

    int updateSupplier(JSONObject requestJson);

    int removeSupplier(JSONObject requestJson);
}
